<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<s:action name="header" executeResult="true">
	<s:param name="titles">Danh Mục - <s:property value="categoryTitle"/></s:param>
</s:action>
<s:action name="sidebar" executeResult="true" />

<!-- Center -->
<div id="center_column" class="center_column">

<!-- MODULE category -->
	<div id="featured-products_block_center">
		<!-- Breadcrumb -->
		<div class="breadcrumb" id="breadcrumb_o">
			<a href="<s:url action="index"/>">Trang Chủ</a><span class="navigation-pipe">&gt;</span><span class="navigation_page"><s:property value="categoryTitle"/></span>
		</div>
		<!-- /Breadcrumb -->
		<div class="block_content">
		<ul>
		<s:iterator value="cateProduct" var="product">
			<li class="ajax_block_product">
				<h5><a class="product_link" href="<s:url action="detail"><s:param name="pid" value="#product.product_id" /></s:url>" title="<s:property value="#product.title"/>"><s:property value="#product.title"/></a></h5>
				<a class="product_image" href="<s:url action="detail"><s:param name="pid" value="#product.product_id" /></s:url>"><img height="120" width="210" src="<s:property value="#product.image_main"/>"></a>
				<div>
					<span class="price"><s:property value="#product.price"/> VNĐ</span>
					<a class="add2cart ajax_add_to_cart_button" href="javascript:;" onclick="ajaxCart.addcart(<s:property value="#product.product_id"/>,1);" title="Add to cart">Thêm vào giỏ</a>
				</div>
			</li>
		<s:set name="no_product" value="1"/>
		</s:iterator>
		</ul>
		</div>
	</div>
	<div style="clear: both;"></div>
	<s:if test="#no_product==null">Không có sản phẩm nào trong danh mục này !</s:if>
	<s:property value="pagination" escape="false" />
<!-- /MODULE category -->		

</div>

<s:action name="footer" executeResult="true" />